<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>{{title}}</title>
    <style>
        body {
          font-family: Arial, sans-serif;
          margin: 40px;
        }

        .nav {
          margin: 40px auto;
          max-width: 400px;
        }

        .nav a {
          display: block;
          margin: 20px 0;
          padding: 16px;
          background: #f0f0f0;
          border-radius: 8px;
          text-align: center;
          text-decoration: none;
          color: #333;
          font-size: 18px;
        }

        .nav a:hover {
          background: #d0eaff;
        }
    </style>
</head>
<body>
    <div class="nav">
        <h1>AI向量检索系统</h1>
        <a href="{{url_for('upload_doc')}}">上传文档</a>
        <a href="{{ url_for('search_doc') }}">文本检索</a>
        <a href="{{url_for('upload_image')}}">上传图片</a>
        <a href="{{url_for('search_image')}}">图片检索</a>
    </div>
</body>
</html>